package edu.gatech.oad.antlab.m7final;
import javax.swing.JButton;
import javax.swing.JFrame;


public class ConfigFrameM5 extends JFrame {	
	JButton continueButton = new JButton();
	private ConfigPanel panel;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Create the frame.
	 */
	
	public ConfigFrameM5(WagonController wagonController) {
	    setVisible(false);
	   // setUndecorated(true);
	    setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 700, 450);
		panel = new ConfigPanel(wagonController);
		add(panel);
		this.pack();
		setLocation(350,160);


	    repaint();
		continueButton = panel.getContinueButton();
			}
	
	public WagonController getWagonControlller(){
		return panel.getWagonController();
	}
	
	public JButton getContinue(){
		return continueButton;
	}


}
